{% extends "base_login.html" %}

{% block link %}
<link rel="stylesheet" href="/static/css/dropzone.min.css" type="text/css" />
{% endblock %}

{% block content_main %}
<p>点击下方或将文件拉到下方完成上传</p>
<form action="/file/upload" class="dropzone" id="my-great-dropzone"></form>
{% endblock %}

{% block script %}
<script src="/static/js/dropzone.min.js"></script>
<script>
  Dropzone.options.myGreatDropzone = { // camelized version of the `id`
    paramName: "file", // The name that will be used to transfer the file
    maxFilesize: 1024, // MB
    accept: function(file, done) {
        done();
    }
  };
</script>
{% endblock %}
